package com.chen.project.white_jotter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.project.white_jotter.pojo.AdminUserRole;

public interface AdminUserRoleMapper extends BaseMapper<AdminUserRole> {
    int deleteByPrimaryKey(Integer id);

    int insert(AdminUserRole record);

    int insertSelective(AdminUserRole record);

    AdminUserRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AdminUserRole record);

    int updateByPrimaryKey(AdminUserRole record);


    ////////////////////////////////////////////////////////////////////////////////////////////////////
    // 通过用户id获取对应的角色
    Integer selectRoleIdByUserId(Integer userId);
    // 通过uId修改rId
    int updateRIdByUId(Integer uId, Integer rId);
}